package com.ruoyi.patient.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 病患管理对象 patient
 * 
 * @author ruoyi
 * @date 2024-02-25
 */
public class Patient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Integer id;

    /** 病患名 */
    @Excel(name = "病患名")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private Integer sex;

    /** 年龄 */
    @Excel(name = "年龄")
    private Integer age;

    /** 电话 */
    @Excel(name = "电话")
    private String tel;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 病患等级 */
    @Excel(name = "病患等级")
    private Integer level;

    /** 看护重点 */
    @Excel(name = "看护重点")
    private String demand;

    /** 慢性病史 */
    @Excel(name = "慢性病史")
    private String chronicDiseasesHistory;

    /** 长期服药史 */
    @Excel(name = "长期服药史")
    private String longTermMedicationHistory;

    /** 看护 */
    @Excel(name = "看护")
    private Integer nurseId;

    /** 看护剩余时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "看护剩余时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date remainingCaregivingTime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSex(Integer sex) 
    {
        this.sex = sex;
    }

    public Integer getSex() 
    {
        return sex;
    }
    public void setAge(Integer age) 
    {
        this.age = age;
    }

    public Integer getAge() 
    {
        return age;
    }
    public void setTel(String tel) 
    {
        this.tel = tel;
    }

    public String getTel() 
    {
        return tel;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }
    public void setDemand(String demand) 
    {
        this.demand = demand;
    }

    public String getDemand() 
    {
        return demand;
    }
    public void setChronicDiseasesHistory(String chronicDiseasesHistory) 
    {
        this.chronicDiseasesHistory = chronicDiseasesHistory;
    }

    public String getChronicDiseasesHistory() 
    {
        return chronicDiseasesHistory;
    }
    public void setLongTermMedicationHistory(String longTermMedicationHistory) 
    {
        this.longTermMedicationHistory = longTermMedicationHistory;
    }

    public String getLongTermMedicationHistory() 
    {
        return longTermMedicationHistory;
    }
    public void setNurseId(Integer nurseId) 
    {
        this.nurseId = nurseId;
    }

    public Integer getNurseId() 
    {
        return nurseId;
    }
    public void setRemainingCaregivingTime(Date remainingCaregivingTime) 
    {
        this.remainingCaregivingTime = remainingCaregivingTime;
    }

    public Date getRemainingCaregivingTime() 
    {
        return remainingCaregivingTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("sex", getSex())
            .append("age", getAge())
            .append("tel", getTel())
            .append("address", getAddress())
            .append("level", getLevel())
            .append("demand", getDemand())
            .append("chronicDiseasesHistory", getChronicDiseasesHistory())
            .append("longTermMedicationHistory", getLongTermMedicationHistory())
            .append("nurseId", getNurseId())
            .append("remainingCaregivingTime", getRemainingCaregivingTime())
            .toString();
    }
}
